#include "swap.h"

int * swap_value(int a[])
{
    int tmp = a[0];
    a[0] = a[1];
    a[1] = tmp;
    return a;
}

void swap_point(int *a, int *b)
{
    int tmp = *a;
    *a = *b;
    *b = tmp;
}

void swap_ref(int &a, int &b)
{
    int tmp = a;
    a = b;
    b = tmp;
}